#include"clude.h"
#include<string>
//�����﷨
//class A {}
//class B
//{
//	A a��
//}

class phone {
public:
	phone() {
		cout << "phone��Ĭ�Ϲ��캯��" << endl;
	}
	phone(string mphone) {
		namephone = mphone;
		cout << "phone�Ĺ��캯��" << endl;
	}
	~phone() {
		cout << "phone����������" << endl;
	}
	string namephone;
};

class person {
public:
	person(string name,string iname){
		pname = name;
		mphone = iname;
		cout << "person�Ĺ��캯��" << endl;
	}
	~person() {
		cout << "person����������" << endl;
	}
	string pname;
	phone mphone;
};

void test01() {
	person p("cook", "iphone 13");
	cout << p.pname << "����" << p.mphone.namephone<<endl;
}
//�����г�Ա�����������ʱ�����ǳƸó�ԱΪ �����Ա
//�����˳���� ���ȵ��ö����Ա�Ĺ��죬�ٵ��ñ��๹��
//����˳���빹���෴

int main() {

	test01();
	return 0;
}